package com.schoolcloud.social.controller.forum;

import com.schoolcloud.common.model.PageDTO;
import com.schoolcloud.common.model.R;
import com.schoolcloud.social.query.UserForumQuery;
import com.schoolcloud.social.service.PostInteractionService;
import com.schoolcloud.social.service.SocPostService;
import com.schoolcloud.social.service.UserForumProfilesService;
import com.schoolcloud.social.vo.ForumUserVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("social/forum/user")
public class UserForumController {
    private final UserForumProfilesService userForumProfilesService;
    private final PostInteractionService postInteractionService;
    @RequestMapping("/page")
    public R<?> getUserForumPage(UserForumQuery query){
       PageDTO<ForumUserVO> pageDTO= postInteractionService.getForumUserInfoPage(query);
       return R.ok(pageDTO);
    }
}
